module.exports = {
  // 解决--fix 报红
  lintOnSave: false,
  // paths  以下由webpack-dev-server
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/mock'
        }
      }
    }
  },
  configureWebpack: {
    output: {
      libraryExport: 'project'
    }
  }
}
